package VN.EDU.IMIC.DEVELOPER.TRANTHITHANHNGA.EXAM01.TASK1;

import java.util.Scanner;

public class HalfCircle_Views {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("+input radius: ");
		double radius = in.nextDouble();
		

		Object obj = new HalfCircle_Entity();
		HalfCircle_Entity Obj = (HalfCircle_Entity) obj;
		Obj.setRadius(radius);

		HalfCircle_Controllers cObj = new HalfCircle_Controllers(Obj);
		System.out.printf("+Area: %8.2f \n", cObj.getArea(obj));
		System.out.printf("+Perimeter: %8.2f \n",cObj.getPerimeter(obj));
	}

}

